home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / anim / standflinch.scr < prev    next >
Encoding:
Text File  |  2002-10-21  |  1.1 KB  |  50 lines

  1. //-------
  2. // standshock.scr
  3. //-------
  4.  
  5. Start:
  6.     //println "Entering standshock.scr"
  7.     waitexec "anim/default_inithandler.scr"
  8.  
  9.     // Initialise say manager
  10.     self waitthread anim/SayManager.scr::Init
  11.  
  12. //    println "WTF was that!?"
  13.     if (self.team == "german")
  14.     {
  15.         self thread anim/SayManager.scr::SayManager ("den_morphonly_panic_" + self.voicetype) 5
  16.     }
  17.     else
  18.     {
  19.         self thread anim/SayManager.scr::SayManager ("dfr_morphonly_panic_" + self.voicetype) 5
  20.     }
  21.  
  22.     self.blendtime = 0.25
  23.  
  24.     //need to take into account current position here... will do it later...
  25.     
  26.     switch (self.weapongroup)
  27.     {
  28.         rifle:
  29.         mp40:
  30.         mp44:
  31.         bar:
  32.         thompson:
  33.         pistol:
  34.         unarmed:
  35.         bazooka:
  36. //            self setmotionanim (self.weapongroup + "_stand_shock")
  37.             self setupperanim (self.weapongroup + "_stand_shock")
  38.             self waittill upperanimdone
  39.             break
  40.  
  41.         default:
  42.             // EARL: anim scripts are not allowed to terminate immediately, so just wait a single frame
  43.             // during this time it will continue to play whatever animations were previously active,
  44.             // which will usually be a looping idle
  45.             waitframe
  46.             break
  47.     }
  48.  
  49. end
  50.